import {createStore,combineReducers,applyMiddleware} from 'redux'
import thunk from 'redux-thunk'
import {findReducer,IFindState} from './reducers/find'
import {userReducer,IUserState} from './reducers/user'

export interface IState{
  find:IFindState
  userInfo:IUserState
}

let rootReducer = combineReducers<IState>({
  find:findReducer,
  userInfo:userReducer
})
let store = createStore(rootReducer,applyMiddleware(thunk))

export default store